<?php 
$pageTitle = "Log In";
include_once "common/header.php"; 
?>
<link rel="stylesheet" type="text/css" href="css/themes/signup_page.css" >
<?php
        include_once 'common/inc/class.users.inc.php';
        $users = new GenericUser($db);
        if($users->accountLogin()===TRUE):
           echo "<meta http-equiv='refresh' content='0;index.php'>";
		   exit;  
        else:   
?>
 <article id="signup_container">
		<form method="post" action="login.php" id="signup">
			<h1>Welcome to ComicBlocks!</h1>
			<input type="email" placeholder="Email" required="" name = "email">
			<input type="password" placeholder="Password" required="" name = "password">
			<button type="submit">Log In</button>	
		</form>
            	
               
    </article>
      
</body>

<?php
    endif;
    
?>
</html>